package com.study.controller;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;
import com.study.intercept.TokenInterceptor;
/**
 * @description HelloController
 * @author TDW
 * @date 2018年10月9日
 *
 */
public class HelloController extends Controller{

	@Before(value={TokenInterceptor.class})
	public void hello(){
		String hello = getPara("hello");
		System.out.println("hello,"+hello);
		renderJson(hello);
		
	}
	
	public void error(){
		int i=1/0;
	}
	
}
